package com.drinks.yiniang.entity.user;

import com.hansen.library.entity.BaseJson;

/**
 * 登录json
 * @author han
 * @date 2019/9/6
 */
public class LoginJson extends BaseJson {

    private LoginData data;

    public LoginData getData() {
        return data;
    }

    public void setData(LoginData data) {
        this.data = data;
    }

    public static class LoginData {
        private String access_token;
        //private String token_type;
        //private String expires_in;
        private LoginUserData user;

        public String getAccess_token() {
            return access_token;
        }

        public void setAccess_token(String access_token) {
            this.access_token = access_token;
        }

        public LoginUserData getUser() {
            return user;
        }

        public void setUser(LoginUserData user) {
            this.user = user;
        }
    }

    public static class LoginUserData {
        private String id;
        //昵称
        private String username;
        //头像
        private String avatar;
        //是否开启支付0否 1是
        private String open_pay;
        //是否专业认证（专家）0否 1是
        private String is_technical;
        private String mobile;
        private String stores_id;
        private String sex;
        //是否星厨
        //private String is_cook;
        //是否星调
        //private String is_bartender;
        //签到 获得的积分 >0提示
        //private String give_point;


        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public String getOpen_pay() {
            return open_pay;
        }

        public void setOpen_pay(String open_pay) {
            this.open_pay = open_pay;
        }

        public String getIs_technical() {
            return is_technical;
        }

        public void setIs_technical(String is_technical) {
            this.is_technical = is_technical;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getStores_id() {
            return stores_id;
        }

        public void setStores_id(String stores_id) {
            this.stores_id = stores_id;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }
    }
}
